package com.pacific.sign.controller;

import com.pacific.sign.BaseController;
import org.springframework.context.annotation.Description;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@Description("homeController")
@Controller
public class HomeController extends BaseController {


    /**
     * OP监控专用 curl 'http://xxxxx:8080/xxxx/isLive.action'
     */
    @RequestMapping(value = "/isLive.action")
    public void isLive(HttpServletRequest req, HttpServletResponse resp) {
        try {
            resp.getOutputStream().write("ok".getBytes());
        } catch(IOException e) {
            e.printStackTrace();
        }
    }

}
